package com.small.springframework.aop;

/**
 * 定义类匹配类，用于切点找到给定的接口和目标类。
 * Filter that restricts matching of a pointcut or introduction to
 * a given set of target classes.
 */
public interface ClassFilter {

    /**
     * 切入点是否应该应用于给定的接口或目标类？
     * @param clazz the candidate target class
     * @return whether the advice should apply to the given target class
     */
    boolean matches(Class<?> clazz);

}
